//
//  ZTListQueryParam.h
//  app
//
//  Created by bigknife on 14/11/2.
//  Copyright (c) 2014年 zzt. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NSString * QueryOrder;
/**
 *  正序
 */
extern const QueryOrder kQueryOrderAsc;
/**
 *  倒序
 */
extern const QueryOrder kQueryOrderDesc;

@interface VMCListQueryParam : NSObject
@property (nonatomic,strong) NSString *by;
@property (nonatomic,strong) QueryOrder order;
@property (nonatomic) BOOL pageEnabled;
@property (nonatomic) NSInteger pageIndex;
@property (nonatomic) NSInteger pageSize;

/**
 *  转换为dictionary
 *
 *  @return dictionary
 */
-(NSDictionary *) asDict;
/**
 *  转换为dictionary，并加入新的键值对
 *
 *  @param obj 新键值对的值
 *  @param key 新键值对的键
 *
 *  @return <#return value description#>
 */
-(NSDictionary *) asDictWithObject:(id)obj forKey:(id<NSCopying>)key;
/**
 *  转换为dictionary，并加入新的dictionary
 *
 *  @param dictionary 新的dictionary
 *
 *  @return <#return value description#>
 */
-(NSDictionary *) asDictWithDictionary:(NSDictionary *)dictionary;
@end
